package com.lenovo.study.core.base;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableId;

import java.io.Serializable;

/**
 * Author: fuxh3@lenovo.com
 * Date: Created in 2017/8/24 0024
 */
public class BaseModel<T extends Model> extends Model<T>{
    private static final long serialVersionUID = -4564685504418427856L;
    @TableId("id")
    public Integer id;

    public Integer getId() {
        return this.id;
    }

    public void setId(Integer id) {
        this.id = id;
    }
    @Override protected Serializable pkVal() {
        return this.id;
    }
}
